package com.sky.loveshop.service.impl;

import com.sky.loveshop.entity.MqttMessage;
import com.sky.loveshop.mapper.MqttMessageMapper;
import com.sky.loveshop.service.MqttMessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xcy
 * @version V1.0
 * @description
 * @date 2024/11/17 20:52
 */
@Slf4j
@Service
public class MyMqttMessageServiceImpl implements MqttMessageService {

    @Resource
    private MqttMessageMapper mqttMessageMapper;

    @Override
    public List<MqttMessage> listAll() {
        return mqttMessageMapper.selectAll();
    }

    @Override
    public int addOne(MqttMessage message) {
        return mqttMessageMapper.insert(message);
    }
}
